<?php
/**
 * Introduction: 售后表  after_sales
 * @author: 杨陈鹏
 * @date: 2016/4/05 16:04
 * @email: yangchenpeng@cdlinglu.com
 */

namespace Common\Model;


use Think\Model;

class AfterSalesModel extends Model
{
    //定义数据库连接信息
    protected $connection;
    //定义模型字段
    protected $fileds = [
        'id',
        'uid',
        'description',
        'progress',
        'order_id',
        'images',
        'create_time',
        'processing_time',
        'complete_time',
        'problem_type_id',
        'problem_type_name',
        'mobile',
        'contacts',
        'result',
        'reason',
        'money',
    ];
    //定义表名
    protected $tableName = 'after_sales';

    /**
     * 初始化
     */
    public function _initialize()
    {

        $this->connection = C('Databaese');

    }
}